package com.itzhigui.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author java1412
 * @since 2023-11-16 16:03:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value = "支付信息实体类")
public class PayInfo implements Serializable {
    @ApiModelProperty("编号")
    private Integer id;
    @ApiModelProperty("用户编号")
    private Integer userId;
    @ApiModelProperty("订单号")
    private Long orderNo;
    @ApiModelProperty("支付平台")
    private Integer payPlatform;
    @ApiModelProperty("支付流水号")
    private String platformNumber;
    @ApiModelProperty("支付状态")
    private String platformStatus;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime; // 创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private Date updateTime; // 更新时间
}
